package com.baizan.daka.ui.contract

import com.baizan.daka.base.IPresenter
import com.baizan.daka.base.IView
import com.baizan.daka.mvp.model.bean.BannerBean
import com.baizan.daka.mvp.model.bean.NewsInfoBean
import com.baizan.daka.mvp.model.bean.TaskInfoBean
import com.baizan.daka.net.BasePageResponse

interface TaskHomeContract {
    interface View : IView {

        fun loadListSuccess(data: BasePageResponse<TaskInfoBean>)

        fun loadListFail(fail: String)

        fun receiveTaskSuccess(index:Int,taskInfoBean: Any)
    }

    interface Presenter : IPresenter {

        fun loadList(CurrentPage: Int,level: Int? ,taskClass:Int?)


        fun receiveTask(index:Int,taskId :Long)

    }
}